import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

/*
 * @Author: jingfuu@163.com
 * @Date: 2024-11-06 14:48:53
 * @LastEditTime: 2024-11-07 21:51:38
 * @Description: file content
 */
export class LoginUserDto {
  @ApiProperty({ name: '用户名' })
  @IsNotEmpty({ message: '用户名不能为空' })
  username: string;
  @ApiProperty({ name: '密码' })
  @IsNotEmpty({ message: '密码不能为空' })
  password: string;
  @ApiProperty({ name: '验证码' })
  code: string;
  @ApiProperty({ name: '验证码后端唯一标识' })
  uuid: string;
}
